package com.testMvc.myshiroFiter;

import com.core.safe.*;
import com.core.spring.annotate.MyConfig;

import java.util.HashMap;
import java.util.Map;

@MyConfig
public class MyShirConfig {

    public AuthRealm setAuthRealm() {
        return new MyAuthRealm();
    }

    public SafeFilter setSafeFilter() {
        Map<String, Object> filterMap = new HashMap<>();
        filterMap.put("", "");
        SafeFilter safeFilter = new SafeFilter();
        safeFilter.setFilterMap(filterMap);
        safeFilter.setLogUrl("/CustAction/login");
        return safeFilter;
    }
}
